import axios from "axios";

export default class fxxk {
    getMenuID(){
        let term_name = document.querySelector(".term-item > .term-con").innerText;
        let menu_list = document.querySelector("div.term-item > div.crm-widget.crm-w-dropdown > div.wrap.crm-scroll.crm-scroll-nobar > ul");
        let menuID = ""
        for(var index=0 ; index < menu_list.childElementCount ; index++){
            if(menu_list.children[index].querySelector("span").textContent == term_name){
                menuID = menu_list.children[index].getAttribute("data-id");
            }
        }
        return menuID;
    }
}
